<?php

namespace app\common\model;

use think\Model;

class Withdraw extends Model
{
    public function card(){
        return $this->hasOne('card','id','user_card_id');
    }
    
    public function user(){
        return $this->hasOne('Member','id','user_id')->field('id,nickname,cashing_money,freeze_money,cashed_money,phone,email');
    }
    
    public function company(){
        return $this->hasOne('Company','user_id','user_id')->field('company,user_id');
    }
    
    
}
